package cn.iocoder.yudao.module.resource.controller.admin.messagecollection.vo;

import lombok.*;

import java.util.*;

import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 消息仓库分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MessageCollectionPageReqVO extends PageParam {

    @Schema(description = "消息来源", example = "1")
    private Integer senderType;

    @Schema(description = "用户消息")
    private String userText;

    @Schema(description = "回复消息")
    private String replyText;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "相似度")
    private Integer similarity;

    @Schema(description = "搜索类型，1: 数据库搜索，2: 向量搜索")
    private Integer searchType;
}